import { h } from "vue";

let remark = "备注";
const customApp = h(
  // 标签名 （必填）
  "input",
  // prop 或 attribute（可选）
  {
    value: remark,
    placeholder: "请输入备注",
    style: {
      width: "100px",
      height: "100px",
      background: "red",
    },
    onChange: (event) => {
      remark = `${event.currentTarget.value}`;
    },
    onClickCapture: () => {},
  },
  // 子 VNodes, （可选的）
  ["Some text comes first.", h("h1", {}, ["我是h1标签的内容"])]
);

export default customApp;
